<include file="Public:header" />
<include file="Public:left" />
	<form action="" method="post" enctype="multipart/form-data" id="brandForm">
	<input type="hidden" name="id" value="{$id}"/>
     <section>
      <h2><strong>编辑</strong></h2>
      <ul class="ulColumn2">
       <li>
          <span class="item_name" style="width:120px;" >会员名称：</span>
          <input type="text" value="{$member_authority_result['name']}" disabled="disabled"     class="textbox textbox_295" name="name" id="account"/>
       </li>
       <li>
        <span class="item_name" style="width:120px;">价格：</span>
        <input type="number" value="{$member_authority_result['price']/100}"    class="textbox textbox_295" name="price" id="account"/>&nbsp;&nbsp;单位(元) 注：0是免费
       </li>
       <li>
        <span class="item_name" style="width:120px;">期限：</span>
        <input type="number" value="{$member_authority_result['term']}"    class="textbox textbox_295" name="term" id="account"/>&nbsp;&nbsp;单位(月) 注：0是无限期
       </li>

       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="button" class="link_btn" value="提交"/>
       </li>
      </ul>
     </section>
	 </form>
     <!--tabStyle-->
     <script type="text/javascript">
      $(".link_btn").click(function(){
          var price = $("input[name='price']").val();
          var term = $("input[name='term']").val();
          var id = $("input[name='id']").val();

          $.post("{:url('User/edit_authority_do')}",{id:id,term:term,price:price},function(result){
            if(result.code == '0'){
                layer.alert(result.msg);
            }else{
                layer.alert(result.msg, {   
                    btn: ['确定']  
                },  
                    function (index, item) { 
                    location.href = result.url;
                });  
            }
          });
      });
      
     </script>

 </div>
</section>
</body>
</html>
